//
//  InfoSelectView.h
//  FindJob
//
//  Created by 233 on 16/3/3.
//  Copyright © 2016年 Lee. All rights reserved.
//

#import <UIKit/UIKit.h>
@class InfoSelectView;
@protocol InfoSelectViewDataSource <NSObject>

- (NSInteger )numberOfCompentsInSelectView:(InfoSelectView *)infoSelectView;
- (NSInteger )infoSelectView:(InfoSelectView *)infoSelectView numberOfRowsInCompent:(NSInteger)compent;

@end

@protocol InfoSelectViewDelegate <NSObject>

- (void)respondsToPressedSureBtn;
- (NSString *)infoSelectView:(InfoSelectView *)infoSelectView titleForRow:(NSInteger)row forComponent:(NSInteger)component;
- (void)infoSelectView:(InfoSelectView *)infoSelectView didSelectRow:(NSInteger)row inComponent:(NSInteger)component;
@end
@interface InfoSelectView : UIView

@property (nonatomic, readonly)NSInteger numberOfCompents;

- (instancetype)initWithDataSoure:(id<InfoSelectViewDataSource>)dataSource delegate:(id<InfoSelectViewDelegate>)delegate;

- (void)reloadAllComponents;
- (void)reloadComponent:(NSInteger)component;
- (NSInteger)selectRowInComponet:(NSInteger)componet;
@end
